#include "stdafx.h"
#include "Event.h"


Event::Event(bool bManualReset, bool bInitialState, const char *lpName)
{
	event_ = CreateEventA(nullptr, bManualReset, bInitialState, lpName);
}


Event::~Event()
{
	CloseHandle(event_);
}

bool Event::SetEvent()
{
	return ::SetEvent(event_);
}

bool Event::ResetEvent()
{
	return ::ResetEvent(event_);
}
